/**
 * Title:        Utility Class Library<p>
 * Description:  Some useful utility classes.<p>
 * Used for default sorting.
 *
 */
package com.timber.util;

import pv.jfcx.PVTableModel;


public class ColumnSortDescriptor
{
  public int		colId;
  public int		priority;
  public boolean	ascending;
  public int		type;


  public ColumnSortDescriptor()
  {
    this( -1, PVTableModel.PRIMARY, true, PVTableModel.AUTO );
  }

  public ColumnSortDescriptor( int colId, int priority )
  {
    this( colId, priority, true, PVTableModel.AUTO );
  }

  public ColumnSortDescriptor( int colId, int priority, boolean ascending, int type )
  {
    this.colId     = colId;
    this.priority  = priority;
    this.ascending = ascending;
    this.type      = type;
  }
}
